package ar.edu.utn.frba.disenio.gui;

import ar.edu.utn.frba.disenio.model.Asiento;
import ar.edu.utn.frba.disenio.model.Lanchita;
import ar.edu.utn.frba.disenio.model.Oceanic;

import com.uqbar.commons.collections.Transformer;

public class AerolineaTransformer implements Transformer<Asiento, String> {

	@Override
	public String transform(Asiento unAsiento) {
		if (unAsiento.getAerolinea().getClass().equals(Oceanic.class)){
			return "Oceanic";
		}
		if (unAsiento.getAerolinea().getClass().equals(Lanchita.class)){
			return "Lanchita";
		}
		return "";
		
	}

}
